\doxysection{bsp\+\_\+flash.\+h}
\hypertarget{bsp__flash_8h_source}{}\label{bsp__flash_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/bsp/flash/bsp\_flash.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/bsp/flash/bsp\_flash.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ \_BSP\_FLASH\_H}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ \_BSP\_FLASH\_H}}
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{main_8h}{main.h}}"{}}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{comment}{/*\ Base\ address\ of\ the\ Flash\ sectors\ */}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_0\ ((uint32\_t)0x08000000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 0,\ 16\ Kbytes\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_1\ ((uint32\_t)0x08004000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 1,\ 16\ Kbytes\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_2\ ((uint32\_t)0x08008000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 2,\ 16\ Kbytes\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_3\ ((uint32\_t)0x0800C000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 3,\ 16\ Kbytes\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_4\ ((uint32\_t)0x08010000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 4,\ 64\ Kbytes\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_5\ ((uint32\_t)0x08020000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 5,\ 128\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_6\ ((uint32\_t)0x08040000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 6,\ 128\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00013\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_7\ ((uint32\_t)0x08060000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 7,\ 128\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00014\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_8\ ((uint32\_t)0x08080000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 8,\ 128\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00015\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_9\ ((uint32\_t)0x080A0000)\ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 9,\ 128\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00016\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_10\ ((uint32\_t)0x080C0000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 10,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00017\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_11\ ((uint32\_t)0x080E0000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 11,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00019\ \textcolor{preprocessor}{\#define\ FLASH\_END\_ADDR\ ((uint32\_t)0x08100000)\ \ \ \ \ \ \ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 23,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00020\ }
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_12\ ((uint32\_t)0x08100000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 12,\ 16\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_13\ ((uint32\_t)0x08104000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 13,\ 16\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00024\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_14\ ((uint32\_t)0x08108000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 14,\ 16\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_15\ ((uint32\_t)0x0810C000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 15,\ 16\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00026\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_16\ ((uint32\_t)0x08110000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 16,\ 64\ Kbytes\ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00027\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_17\ ((uint32\_t)0x08120000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 17,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_18\ ((uint32\_t)0x08140000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 18,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00029\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_19\ ((uint32\_t)0x08160000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 19,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00030\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_20\ ((uint32\_t)0x08180000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 20,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_21\ ((uint32\_t)0x081A0000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 21,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00032\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_22\ ((uint32\_t)0x081C0000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 22,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#define\ ADDR\_FLASH\_SECTOR\_23\ ((uint32\_t)0x081E0000)\ }\textcolor{comment}{/*\ Base\ address\ of\ Sector\ 23,\ 128\ Kbytes\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00043\ \textcolor{keywordtype}{void}\ flash\_erase\_address(uint32\_t\ address,\ uint16\_t\ len);}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00052\ int8\_t\ flash\_write\_single\_address(uint32\_t\ start\_address,\ uint32\_t\ *buf,\ uint32\_t\ len);}
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00063\ int8\_t\ flash\_write\_muli\_address(uint32\_t\ start\_address,\ uint32\_t\ end\_address,\ uint32\_t\ *buf,\ uint32\_t\ len);}
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00072\ \textcolor{keywordtype}{void}\ flash\_read(uint32\_t\ address,\ uint32\_t\ *buf,\ uint32\_t\ len);}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00079\ uint32\_t\ get\_next\_flash\_address(uint32\_t\ address);}
\DoxyCodeLine{00080\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
